GetMediaSampleCount
TheGetMediaSampleCount
function allows you to determine the number of samples in a media.
pascal long GetMediaSampleCount (Media theMedia);
theMedia
- Specifies the media for this operation. You obtain this media identifier from such Movie Toolbox functions as
NewTrackMedia
andGetTrackMedia
(described on page 2-138 and page 2-190, respectively).DESCRIPTION
TheGetMediaSampleCount
function returns a long integer that contains the number of samples in the specified media. Note that this number does not necessarily correspond to the number of samples used in the track that contains the media. Some samples in the media may not be used in the track, and others may be used more than once.ERROR CODES
invalidMedia -2008 This media is corrupted or invalid